package com.example.springbook.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
public class PageRequest {
    private Integer pageNum=1;
    private Integer pageSize=10;
    private Integer offest;
    public Integer getOffest() {
        return (pageNum-1)*pageSize;
    }

}
